import bcrypt

# 生成BCrypt哈希
password = "123456"
hashed = bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt())
print("原始密码:", password)
print("生成的BCrypt哈希:", hashed.decode('utf-8'))
print("哈希长度:", len(hashed.decode('utf-8')))